package com.personal.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TMemberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TMemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andMemidIsNull() {
            addCriterion("memId is null");
            return (Criteria) this;
        }

        public Criteria andMemidIsNotNull() {
            addCriterion("memId is not null");
            return (Criteria) this;
        }

        public Criteria andMemidEqualTo(Integer value) {
            addCriterion("memId =", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidNotEqualTo(Integer value) {
            addCriterion("memId <>", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidGreaterThan(Integer value) {
            addCriterion("memId >", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidGreaterThanOrEqualTo(Integer value) {
            addCriterion("memId >=", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidLessThan(Integer value) {
            addCriterion("memId <", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidLessThanOrEqualTo(Integer value) {
            addCriterion("memId <=", value, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidIn(List<Integer> values) {
            addCriterion("memId in", values, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidNotIn(List<Integer> values) {
            addCriterion("memId not in", values, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidBetween(Integer value1, Integer value2) {
            addCriterion("memId between", value1, value2, "memid");
            return (Criteria) this;
        }

        public Criteria andMemidNotBetween(Integer value1, Integer value2) {
            addCriterion("memId not between", value1, value2, "memid");
            return (Criteria) this;
        }

        public Criteria andMemlognameIsNull() {
            addCriterion("memlogName is null");
            return (Criteria) this;
        }

        public Criteria andMemlognameIsNotNull() {
            addCriterion("memlogName is not null");
            return (Criteria) this;
        }

        public Criteria andMemlognameEqualTo(String value) {
            addCriterion("memlogName =", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameNotEqualTo(String value) {
            addCriterion("memlogName <>", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameGreaterThan(String value) {
            addCriterion("memlogName >", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameGreaterThanOrEqualTo(String value) {
            addCriterion("memlogName >=", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameLessThan(String value) {
            addCriterion("memlogName <", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameLessThanOrEqualTo(String value) {
            addCriterion("memlogName <=", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameLike(String value) {
            addCriterion("memlogName like", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameNotLike(String value) {
            addCriterion("memlogName not like", value, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameIn(List<String> values) {
            addCriterion("memlogName in", values, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameNotIn(List<String> values) {
            addCriterion("memlogName not in", values, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameBetween(String value1, String value2) {
            addCriterion("memlogName between", value1, value2, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMemlognameNotBetween(String value1, String value2) {
            addCriterion("memlogName not between", value1, value2, "memlogname");
            return (Criteria) this;
        }

        public Criteria andMempasswordIsNull() {
            addCriterion("mempassword is null");
            return (Criteria) this;
        }

        public Criteria andMempasswordIsNotNull() {
            addCriterion("mempassword is not null");
            return (Criteria) this;
        }

        public Criteria andMempasswordEqualTo(String value) {
            addCriterion("mempassword =", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordNotEqualTo(String value) {
            addCriterion("mempassword <>", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordGreaterThan(String value) {
            addCriterion("mempassword >", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordGreaterThanOrEqualTo(String value) {
            addCriterion("mempassword >=", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordLessThan(String value) {
            addCriterion("mempassword <", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordLessThanOrEqualTo(String value) {
            addCriterion("mempassword <=", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordLike(String value) {
            addCriterion("mempassword like", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordNotLike(String value) {
            addCriterion("mempassword not like", value, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordIn(List<String> values) {
            addCriterion("mempassword in", values, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordNotIn(List<String> values) {
            addCriterion("mempassword not in", values, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordBetween(String value1, String value2) {
            addCriterion("mempassword between", value1, value2, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMempasswordNotBetween(String value1, String value2) {
            addCriterion("mempassword not between", value1, value2, "mempassword");
            return (Criteria) this;
        }

        public Criteria andMemrealnameIsNull() {
            addCriterion("memRealName is null");
            return (Criteria) this;
        }

        public Criteria andMemrealnameIsNotNull() {
            addCriterion("memRealName is not null");
            return (Criteria) this;
        }

        public Criteria andMemrealnameEqualTo(String value) {
            addCriterion("memRealName =", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameNotEqualTo(String value) {
            addCriterion("memRealName <>", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameGreaterThan(String value) {
            addCriterion("memRealName >", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameGreaterThanOrEqualTo(String value) {
            addCriterion("memRealName >=", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameLessThan(String value) {
            addCriterion("memRealName <", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameLessThanOrEqualTo(String value) {
            addCriterion("memRealName <=", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameLike(String value) {
            addCriterion("memRealName like", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameNotLike(String value) {
            addCriterion("memRealName not like", value, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameIn(List<String> values) {
            addCriterion("memRealName in", values, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameNotIn(List<String> values) {
            addCriterion("memRealName not in", values, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameBetween(String value1, String value2) {
            addCriterion("memRealName between", value1, value2, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemrealnameNotBetween(String value1, String value2) {
            addCriterion("memRealName not between", value1, value2, "memrealname");
            return (Criteria) this;
        }

        public Criteria andMemsexIsNull() {
            addCriterion("memSex is null");
            return (Criteria) this;
        }

        public Criteria andMemsexIsNotNull() {
            addCriterion("memSex is not null");
            return (Criteria) this;
        }

        public Criteria andMemsexEqualTo(String value) {
            addCriterion("memSex =", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexNotEqualTo(String value) {
            addCriterion("memSex <>", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexGreaterThan(String value) {
            addCriterion("memSex >", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexGreaterThanOrEqualTo(String value) {
            addCriterion("memSex >=", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexLessThan(String value) {
            addCriterion("memSex <", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexLessThanOrEqualTo(String value) {
            addCriterion("memSex <=", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexLike(String value) {
            addCriterion("memSex like", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexNotLike(String value) {
            addCriterion("memSex not like", value, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexIn(List<String> values) {
            addCriterion("memSex in", values, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexNotIn(List<String> values) {
            addCriterion("memSex not in", values, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexBetween(String value1, String value2) {
            addCriterion("memSex between", value1, value2, "memsex");
            return (Criteria) this;
        }

        public Criteria andMemsexNotBetween(String value1, String value2) {
            addCriterion("memSex not between", value1, value2, "memsex");
            return (Criteria) this;
        }

        public Criteria andMememailIsNull() {
            addCriterion("mememail is null");
            return (Criteria) this;
        }

        public Criteria andMememailIsNotNull() {
            addCriterion("mememail is not null");
            return (Criteria) this;
        }

        public Criteria andMememailEqualTo(String value) {
            addCriterion("mememail =", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailNotEqualTo(String value) {
            addCriterion("mememail <>", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailGreaterThan(String value) {
            addCriterion("mememail >", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailGreaterThanOrEqualTo(String value) {
            addCriterion("mememail >=", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailLessThan(String value) {
            addCriterion("mememail <", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailLessThanOrEqualTo(String value) {
            addCriterion("mememail <=", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailLike(String value) {
            addCriterion("mememail like", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailNotLike(String value) {
            addCriterion("mememail not like", value, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailIn(List<String> values) {
            addCriterion("mememail in", values, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailNotIn(List<String> values) {
            addCriterion("mememail not in", values, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailBetween(String value1, String value2) {
            addCriterion("mememail between", value1, value2, "mememail");
            return (Criteria) this;
        }

        public Criteria andMememailNotBetween(String value1, String value2) {
            addCriterion("mememail not between", value1, value2, "mememail");
            return (Criteria) this;
        }

        public Criteria andMemcardIsNull() {
            addCriterion("memcard is null");
            return (Criteria) this;
        }

        public Criteria andMemcardIsNotNull() {
            addCriterion("memcard is not null");
            return (Criteria) this;
        }

        public Criteria andMemcardEqualTo(Integer value) {
            addCriterion("memcard =", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardNotEqualTo(Integer value) {
            addCriterion("memcard <>", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardGreaterThan(Integer value) {
            addCriterion("memcard >", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardGreaterThanOrEqualTo(Integer value) {
            addCriterion("memcard >=", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardLessThan(Integer value) {
            addCriterion("memcard <", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardLessThanOrEqualTo(Integer value) {
            addCriterion("memcard <=", value, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardIn(List<Integer> values) {
            addCriterion("memcard in", values, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardNotIn(List<Integer> values) {
            addCriterion("memcard not in", values, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardBetween(Integer value1, Integer value2) {
            addCriterion("memcard between", value1, value2, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcardNotBetween(Integer value1, Integer value2) {
            addCriterion("memcard not between", value1, value2, "memcard");
            return (Criteria) this;
        }

        public Criteria andMemcoachIsNull() {
            addCriterion("memcoach is null");
            return (Criteria) this;
        }

        public Criteria andMemcoachIsNotNull() {
            addCriterion("memcoach is not null");
            return (Criteria) this;
        }

        public Criteria andMemcoachEqualTo(Integer value) {
            addCriterion("memcoach =", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachNotEqualTo(Integer value) {
            addCriterion("memcoach <>", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachGreaterThan(Integer value) {
            addCriterion("memcoach >", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachGreaterThanOrEqualTo(Integer value) {
            addCriterion("memcoach >=", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachLessThan(Integer value) {
            addCriterion("memcoach <", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachLessThanOrEqualTo(Integer value) {
            addCriterion("memcoach <=", value, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachIn(List<Integer> values) {
            addCriterion("memcoach in", values, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachNotIn(List<Integer> values) {
            addCriterion("memcoach not in", values, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachBetween(Integer value1, Integer value2) {
            addCriterion("memcoach between", value1, value2, "memcoach");
            return (Criteria) this;
        }

        public Criteria andMemcoachNotBetween(Integer value1, Integer value2) {
            addCriterion("memcoach not between", value1, value2, "memcoach");
            return (Criteria) this;
        }

        public Criteria andCardstartIsNull() {
            addCriterion("cardstart is null");
            return (Criteria) this;
        }

        public Criteria andCardstartIsNotNull() {
            addCriterion("cardstart is not null");
            return (Criteria) this;
        }

        public Criteria andCardstartEqualTo(Date value) {
            addCriterionForJDBCDate("cardstart =", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartNotEqualTo(Date value) {
            addCriterionForJDBCDate("cardstart <>", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartGreaterThan(Date value) {
            addCriterionForJDBCDate("cardstart >", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("cardstart >=", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartLessThan(Date value) {
            addCriterionForJDBCDate("cardstart <", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("cardstart <=", value, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartIn(List<Date> values) {
            addCriterionForJDBCDate("cardstart in", values, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartNotIn(List<Date> values) {
            addCriterionForJDBCDate("cardstart not in", values, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("cardstart between", value1, value2, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardstartNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("cardstart not between", value1, value2, "cardstart");
            return (Criteria) this;
        }

        public Criteria andCardendIsNull() {
            addCriterion("cardend is null");
            return (Criteria) this;
        }

        public Criteria andCardendIsNotNull() {
            addCriterion("cardend is not null");
            return (Criteria) this;
        }

        public Criteria andCardendEqualTo(Date value) {
            addCriterionForJDBCDate("cardend =", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendNotEqualTo(Date value) {
            addCriterionForJDBCDate("cardend <>", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendGreaterThan(Date value) {
            addCriterionForJDBCDate("cardend >", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("cardend >=", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendLessThan(Date value) {
            addCriterionForJDBCDate("cardend <", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("cardend <=", value, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendIn(List<Date> values) {
            addCriterionForJDBCDate("cardend in", values, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendNotIn(List<Date> values) {
            addCriterionForJDBCDate("cardend not in", values, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("cardend between", value1, value2, "cardend");
            return (Criteria) this;
        }

        public Criteria andCardendNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("cardend not between", value1, value2, "cardend");
            return (Criteria) this;
        }

        public Criteria andMemstatesIsNull() {
            addCriterion("memstates is null");
            return (Criteria) this;
        }

        public Criteria andMemstatesIsNotNull() {
            addCriterion("memstates is not null");
            return (Criteria) this;
        }

        public Criteria andMemstatesEqualTo(String value) {
            addCriterion("memstates =", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesNotEqualTo(String value) {
            addCriterion("memstates <>", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesGreaterThan(String value) {
            addCriterion("memstates >", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesGreaterThanOrEqualTo(String value) {
            addCriterion("memstates >=", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesLessThan(String value) {
            addCriterion("memstates <", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesLessThanOrEqualTo(String value) {
            addCriterion("memstates <=", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesLike(String value) {
            addCriterion("memstates like", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesNotLike(String value) {
            addCriterion("memstates not like", value, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesIn(List<String> values) {
            addCriterion("memstates in", values, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesNotIn(List<String> values) {
            addCriterion("memstates not in", values, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesBetween(String value1, String value2) {
            addCriterion("memstates between", value1, value2, "memstates");
            return (Criteria) this;
        }

        public Criteria andMemstatesNotBetween(String value1, String value2) {
            addCriterion("memstates not between", value1, value2, "memstates");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}